package cn.nebula.music.domain;

import java.io.Serializable;

import org.springframework.context.annotation.Lazy;

public class UserSinger implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer user;
	private Integer singer;
	public Integer getUser() {
		return user;
	}
	public void setUser(Integer user) {
		this.user = user;
	}
	public Integer getSinger() {
		return singer;
	}
	public void setSinger(Integer singer) {
		this.singer = singer;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((singer == null) ? 0 : singer.hashCode());
		result = prime * result + ((user == null) ? 0 : user.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		UserSinger other = (UserSinger) obj;
		if (singer == null) {
			if (other.singer != null)
				return false;
		} else if (!singer.equals(other.singer))
			return false;
		if (user == null) {
			if (other.user != null)
				return false;
		} else if (!user.equals(other.user))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "UserSinger [user=" + user + ", singer=" + singer + "]";
	}
	
	
}
